package com.zj.java21demo.controller;

import com.zj.java21demo.service.UserService;
import com.zj.java21demo.vo.ResultVo;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xiaoniuhululu
 * @since 2024-01-20 12:45:35
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @Resource
    private UserService userService;

    @GetMapping("test")
    private ResultVo queryUserByAccount() {
        return userService.queryUserByPage(null);
    }

}
